package sk.stuba.fiit.ltasys.web.mvc.model.service;

import java.util.List;

import sk.stuba.fiit.ltasys.web.mvc.model.entity.ArchivePackageEntity;
import sk.stuba.fiit.ltasys.web.mvc.model.entity.EvidenceRecordEntity;
import sk.stuba.fiit.ltasys.web.mvc.model.entity.UserEntity;
import sk.stuba.fiit.ltasys.ws.schema.beans.ArchiveRequest;
import sk.stuba.fiit.ltasys.ws.schema.beans.ArchiveResponse;
import sk.stuba.fiit.ltasys.ws.schema.beans.UserType;

public interface ArchiveService {

	public boolean verifyUser(UserType user);
	
	public ArchiveResponse processArchiveRequest(ArchiveRequest request);
	
	public void saveArchivePackage(ArchivePackageEntity archivePackage);
	
	public void deleteArchivePackage(ArchivePackageEntity archivePackage);
	
	public ArchivePackageEntity loadArchivePackageByToken(String token);
	
	public List<ArchivePackageEntity> getAllArchivesByUser(UserEntity user);
	
	public EvidenceRecordEntity getArchiveRecordById(Integer id);

	public List<ArchivePackageEntity> getAllRecordForRetimestamping();

}
